<?php
namespace app\index\Controller;

use think\Controller;
use think\Db;
use think\Request;


class Homeindex extends Controller
{
    public function index()
    {
        //轮廓图获取数据库的封面是1的图片
        $img = Db::table('banner')->where('face', 'EQ', '1')->select();
        $this->assign('imgs', $img);
        return $this->fetch('index/index');
    }
}